home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-02-13 | 3.0 KB | 148 lines | [TEXT/MPS ] |
- //# Copyright: © 1993 - 1995 by Apple Computer, Inc., all rights reserved.
-
- #ifndef _MENUBAR_
- #define _MENUBAR_
-
- #ifndef _REFCTOBJ_
- #include "RefCtObj.idl"
- #endif
-
- //=====================================================================================
- // Classes defined in this interface
- //=====================================================================================
-
- interface ODMenuBar;
-
- //=====================================================================================
- // Classes used by this interface
- //=====================================================================================
-
- interface ODPart;
-
-
- //=====================================================================================
- // Class ODMenuBar
- //=====================================================================================
-
- interface ODMenuBar : ODRefCntObject
- {
- void Display();
-
- ODMenuBar Copy();
-
- void AddMenuLast(in ODMenuID menuID,
- in ODPlatformMenu menu,
- in ODPart part);
-
- void AddMenuBefore(in ODMenuID menuID,
- in ODPlatformMenu menu,
- in ODPart part,
- in ODMenuID beforeID);
-
- void RemoveMenu(in ODMenuID menu);
-
- ODPlatformMenu GetMenu(in ODMenuID menu);
-
- ODBoolean IsValid();
-
- #ifdef _PLATFORM_MACINTOSH_
-
- void AddSubMenu(in ODMenuID menuID,
- in ODPlatformMenu menu,
- in ODPart part);
-
- void RegisterCommand(in ODCommandID command,
- in ODMenuID menu,
- in ODMenuItemID menuItem);
-
- void UnregisterCommand(in ODCommandID command);
-
- void UnregisterAll();
-
- ODBoolean IsCommandRegistered(in ODCommandID command);
-
- ODBoolean IsCommandSynthetic(in ODCommandID command);
-
- ODCommandID GetCommand(in ODMenuID menu,
- in ODMenuItemID menuItem);
-
- void GetMenuAndItem(in ODCommandID command,
- out ODMenuID menu,
- out ODMenuItemID menuItem);
-
- void EnableCommand(in ODCommandID cmdNumber,
- in ODBoolean enable);
-
- void CheckCommand(in ODCommandID cmdNumber,
- in ODBoolean check);
-
- void EnableAndCheckCommand(in ODCommandID cmdNumber,
- in ODBoolean enable,
- in ODBoolean check) ;
-
- void SetItemString(in ODCommandID cmdNumber,
- in ODIText itemString);
-
- void GetItemString(in ODCommandID cmdNumber,
- out ODIText itemString);
-
- void DisableAll();
-
- void EnableAll();
-
- #endif //# _PLATFORM_MACINTOSH_
-
-
- #ifdef __SOMIDL__
- #ifdef _PLATFORM_MACINTOSH_
-
- implementation
- {
- majorversion = 1; minorversion = 0;
-
- functionprefix = ODMenuBar;
-
- override:
- somUninit,
- Purge,
- Release;
-
- releaseorder:
- Display,
- Copy,
- AddMenuLast,
- AddMenuBefore,
- RemoveMenu,
- GetMenu,
- IsValid,
-
- AddSubMenu,
- RegisterCommand,
- UnregisterCommand,
- UnregisterAll,
- IsCommandRegistered,
- IsCommandSynthetic,
- GetCommand,
- GetMenuAndItem,
- EnableCommand,
- CheckCommand,
- EnableAndCheckCommand,
- SetItemString,
- GetItemString,
- DisableAll,
- EnableAll,
- reserved1,
- reserved2,
- reserved3,
- reserved4,
- reserved5;
-
-
- };
- #endif //# _PLATFORM_MACINTOSH_
- #endif //# __SOMIDL__
-
- };
-
- #endif //# _MENUBAR_
-